<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<title>字典管理</title>
	<meta charset="utf-8">
	<th:block th:include="include :: header('commonFiles')" />
</head>

<body>
	<div class="layui-row">
		<button type="button" class="layui-btn layui-btn-radius layui-btn-normal" onclick="add()">
			<i class="layui-icon">&#xe608;</i> 添加
		</button>
	</div>
	<div class="layui-row">
		<table id="demo" lay-filter="test"></table>
	</div>
</body>

<!-- 序号模板 -->
<script type="text/html" id="xuhao">
	{{d.LAY_INDEX }}
</script>

<!-- 按钮模板 -->
<script type="text/html" id="btnTemplate">

	<button type="button" class="layui-btn layui-btn-sm layui-btn-warm" title="修改" onclick="add({{d.ID}})">
		<i class="layui-icon">&#xe642;</i>
	</button>

	<button type="button" class="layui-btn layui-btn-sm layui-btn-danger" title="删除"   lay-event="del">
		<i class="layui-icon">&#xe640;</i>
	</button>	

</script>

<!-- 状态模板 -->
<script type="text/html" id="statusTemplate">
	{{# if(d.DICTSTATUS == 1){ }}
		有效
	{{# }else{ }}
		无效
	{{# } }}
</script>

<!-- th:inline="none" 双数组符号一起使用，在thymeleaf被认为是内联表达式,所以渲染错误，添加了th:inline="none"可以防止该问题 -->
<script type="text/javascript" th:inline="none" th:src="@{/js/dict/list.js}"></script>

</html>